#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QDialog>
#include <QtCore>
#include <QtGui>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
     QStringList ComboList;
    
public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

    
private slots:

    /* This method executes when you select the STOP button to stop
     * the song being played*/
    void on_buttonStop_clicked();

    /* This method executes when you select the PLAY button to play
     * the selected song*/
    void on_buttonPlay_clicked();

    /* This method executes to show all the names of the mp3
     * songs from the usb to the ComboBox*/
    void getMusicFileNames();

    /* This methods execute to change the value of the volume*/
    void on_dial_sliderMoved();
    void on_spinBox_valueChanged();

    /* This method executes to update the position of the time slider*/
    void updateTimer();
    void updateSlider(bool playing);

private:
    Ui::MainWindow *ui;
    QFileSystemModel *dirmodel;
    QFileSystemModel *filemodel;

};

#endif // MAINWINDOW_H
